package com.mind.ridge.service.front.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mind.ridge.mapper.front.OrderDetailMapper;
import com.mind.ridge.pojo.front.OrderDetail;
import com.mind.ridge.service.front.OrderDetailService;
import com.mind.ridge.utils.R;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpSession;


/**
 * @author Mind
 */
@Service
public class OrderDetailServiceImpl extends ServiceImpl<OrderDetailMapper, OrderDetail> implements OrderDetailService {

    @Override
    public R<IPage<OrderDetail>> orderPage(HttpSession session, int page, int size) {
        IPage<OrderDetail> orders = new Page<>(page, size);
        this.page(orders);
        return R.success(orders);
    }
}
